package per.joker;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author joker
 * @date 2022/5/12 0012 - 21:06
 */
public class MyFactory implements FactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {
        Person person = new Person("赵六", 22);
        return person;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
